

/* this ALWAYS GENERATED file contains the definitions for the interfaces */


 /* File created by MIDL compiler version 7.00.0555 */
/* at Sat Feb 03 15:29:19 2018
 */
/* Compiler settings for AtlTest.idl:
    Oicf, W1, Zp8, env=Win32 (32b run), target_arch=X86 7.00.0555 
    protocol : dce , ms_ext, c_ext, robust
    error checks: allocation ref bounds_check enum stub_data 
    VC __declspec() decoration level: 
         __declspec(uuid()), __declspec(selectany), __declspec(novtable)
         DECLSPEC_UUID(), MIDL_INTERFACE()
*/
/* @@MIDL_FILE_HEADING(  ) */

#pragma warning( disable: 4049 )  /* more than 64k source lines */


/* verify that the <rpcndr.h> version is high enough to compile this file*/
#ifndef __REQUIRED_RPCNDR_H_VERSION__
#define __REQUIRED_RPCNDR_H_VERSION__ 475
#endif

#include "rpc.h"
#include "rpcndr.h"

#ifndef __RPCNDR_H_VERSION__
#error this stub requires an updated version of <rpcndr.h>
#endif // __RPCNDR_H_VERSION__

#ifndef COM_NO_WINDOWS_H
#include "windows.h"
#include "ole2.h"
#endif /*COM_NO_WINDOWS_H*/

#ifndef __AtlTest_i_h__
#define __AtlTest_i_h__

#if defined(_MSC_VER) && (_MSC_VER >= 1020)
#pragma once
#endif

/* Forward Declarations */ 

#ifndef __ICallback_FWD_DEFINED__
#define __ICallback_FWD_DEFINED__
typedef interface ICallback ICallback;
#endif 	/* __ICallback_FWD_DEFINED__ */


#ifndef __IAtlDemo_FWD_DEFINED__
#define __IAtlDemo_FWD_DEFINED__
typedef interface IAtlDemo IAtlDemo;
#endif 	/* __IAtlDemo_FWD_DEFINED__ */


#ifndef __AtlDemo_FWD_DEFINED__
#define __AtlDemo_FWD_DEFINED__

#ifdef __cplusplus
typedef class AtlDemo AtlDemo;
#else
typedef struct AtlDemo AtlDemo;
#endif /* __cplusplus */

#endif 	/* __AtlDemo_FWD_DEFINED__ */


/* header files for imported files */
#include "oaidl.h"
#include "ocidl.h"
#include "shobjidl.h"

#ifdef __cplusplus
extern "C"{
#endif 


#ifndef __ICallback_INTERFACE_DEFINED__
#define __ICallback_INTERFACE_DEFINED__

/* interface ICallback */
/* [object][unique][nonextensible][dual][uuid] */ 


EXTERN_C const IID IID_ICallback;

#if defined(__cplusplus) && !defined(CINTERFACE)
    
    MIDL_INTERFACE("9E249804-9FAA-48DE-82E8-5F0F127B90D9")
    ICallback : public IDispatch
    {
    public:
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Show( 
            /* [in] */ long sum) = 0;
        
    };
    
#else 	/* C style interface */

    typedef struct ICallbackVtbl
    {
        BEGIN_INTERFACE
        
        HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
            ICallback * This,
            /* [in] */ REFIID riid,
            /* [annotation][iid_is][out] */ 
            __RPC__deref_out  void **ppvObject);
        
        ULONG ( STDMETHODCALLTYPE *AddRef )( 
            ICallback * This);
        
        ULONG ( STDMETHODCALLTYPE *Release )( 
            ICallback * This);
        
        HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( 
            ICallback * This,
            /* [out] */ UINT *pctinfo);
        
        HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( 
            ICallback * This,
            /* [in] */ UINT iTInfo,
            /* [in] */ LCID lcid,
            /* [out] */ ITypeInfo **ppTInfo);
        
        HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( 
            ICallback * This,
            /* [in] */ REFIID riid,
            /* [size_is][in] */ LPOLESTR *rgszNames,
            /* [range][in] */ UINT cNames,
            /* [in] */ LCID lcid,
            /* [size_is][out] */ DISPID *rgDispId);
        
        /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( 
            ICallback * This,
            /* [in] */ DISPID dispIdMember,
            /* [in] */ REFIID riid,
            /* [in] */ LCID lcid,
            /* [in] */ WORD wFlags,
            /* [out][in] */ DISPPARAMS *pDispParams,
            /* [out] */ VARIANT *pVarResult,
            /* [out] */ EXCEPINFO *pExcepInfo,
            /* [out] */ UINT *puArgErr);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Show )( 
            ICallback * This,
            /* [in] */ long sum);
        
        END_INTERFACE
    } ICallbackVtbl;

    interface ICallback
    {
        CONST_VTBL struct ICallbackVtbl *lpVtbl;
    };

    

#ifdef COBJMACROS


#define ICallback_QueryInterface(This,riid,ppvObject)	\
    ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) 

#define ICallback_AddRef(This)	\
    ( (This)->lpVtbl -> AddRef(This) ) 

#define ICallback_Release(This)	\
    ( (This)->lpVtbl -> Release(This) ) 


#define ICallback_GetTypeInfoCount(This,pctinfo)	\
    ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) 

#define ICallback_GetTypeInfo(This,iTInfo,lcid,ppTInfo)	\
    ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) 

#define ICallback_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)	\
    ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) 

#define ICallback_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)	\
    ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) 


#define ICallback_Show(This,sum)	\
    ( (This)->lpVtbl -> Show(This,sum) ) 

#endif /* COBJMACROS */


#endif 	/* C style interface */




#endif 	/* __ICallback_INTERFACE_DEFINED__ */


#ifndef __IAtlDemo_INTERFACE_DEFINED__
#define __IAtlDemo_INTERFACE_DEFINED__

/* interface IAtlDemo */
/* [unique][nonextensible][dual][uuid][object] */ 


EXTERN_C const IID IID_IAtlDemo;

#if defined(__cplusplus) && !defined(CINTERFACE)
    
    MIDL_INTERFACE("D755CE59-2940-423A-A6D9-E0521A64E757")
    IAtlDemo : public IDispatch
    {
    public:
        virtual /* [id] */ HRESULT STDMETHODCALLTYPE ComStr( 
            /* [in] */ BSTR *p1,
            /* [in] */ BSTR *p2,
            /* [retval][out] */ BSTR *reStr) = 0;
        
        virtual /* [id] */ HRESULT STDMETHODCALLTYPE Hello( 
            /* [retval][out] */ BSTR *p1) = 0;
        
        virtual /* [id] */ HRESULT STDMETHODCALLTYPE ShowNum( 
            /* [in] */ LONG num) = 0;
        
        virtual /* [id] */ HRESULT STDMETHODCALLTYPE removeCallback( void) = 0;
        
        virtual /* [id] */ HRESULT STDMETHODCALLTYPE addCallback( 
            /* [in] */ ICallback *pCallback) = 0;
        
    };
    
#else 	/* C style interface */

    typedef struct IAtlDemoVtbl
    {
        BEGIN_INTERFACE
        
        HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
            IAtlDemo * This,
            /* [in] */ REFIID riid,
            /* [annotation][iid_is][out] */ 
            __RPC__deref_out  void **ppvObject);
        
        ULONG ( STDMETHODCALLTYPE *AddRef )( 
            IAtlDemo * This);
        
        ULONG ( STDMETHODCALLTYPE *Release )( 
            IAtlDemo * This);
        
        HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( 
            IAtlDemo * This,
            /* [out] */ UINT *pctinfo);
        
        HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( 
            IAtlDemo * This,
            /* [in] */ UINT iTInfo,
            /* [in] */ LCID lcid,
            /* [out] */ ITypeInfo **ppTInfo);
        
        HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( 
            IAtlDemo * This,
            /* [in] */ REFIID riid,
            /* [size_is][in] */ LPOLESTR *rgszNames,
            /* [range][in] */ UINT cNames,
            /* [in] */ LCID lcid,
            /* [size_is][out] */ DISPID *rgDispId);
        
        /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( 
            IAtlDemo * This,
            /* [in] */ DISPID dispIdMember,
            /* [in] */ REFIID riid,
            /* [in] */ LCID lcid,
            /* [in] */ WORD wFlags,
            /* [out][in] */ DISPPARAMS *pDispParams,
            /* [out] */ VARIANT *pVarResult,
            /* [out] */ EXCEPINFO *pExcepInfo,
            /* [out] */ UINT *puArgErr);
        
        /* [id] */ HRESULT ( STDMETHODCALLTYPE *ComStr )( 
            IAtlDemo * This,
            /* [in] */ BSTR *p1,
            /* [in] */ BSTR *p2,
            /* [retval][out] */ BSTR *reStr);
        
        /* [id] */ HRESULT ( STDMETHODCALLTYPE *Hello )( 
            IAtlDemo * This,
            /* [retval][out] */ BSTR *p1);
        
        /* [id] */ HRESULT ( STDMETHODCALLTYPE *ShowNum )( 
            IAtlDemo * This,
            /* [in] */ LONG num);
        
        /* [id] */ HRESULT ( STDMETHODCALLTYPE *removeCallback )( 
            IAtlDemo * This);
        
        /* [id] */ HRESULT ( STDMETHODCALLTYPE *addCallback )( 
            IAtlDemo * This,
            /* [in] */ ICallback *pCallback);
        
        END_INTERFACE
    } IAtlDemoVtbl;

    interface IAtlDemo
    {
        CONST_VTBL struct IAtlDemoVtbl *lpVtbl;
    };

    

#ifdef COBJMACROS


#define IAtlDemo_QueryInterface(This,riid,ppvObject)	\
    ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) 

#define IAtlDemo_AddRef(This)	\
    ( (This)->lpVtbl -> AddRef(This) ) 

#define IAtlDemo_Release(This)	\
    ( (This)->lpVtbl -> Release(This) ) 


#define IAtlDemo_GetTypeInfoCount(This,pctinfo)	\
    ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) 

#define IAtlDemo_GetTypeInfo(This,iTInfo,lcid,ppTInfo)	\
    ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) 

#define IAtlDemo_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)	\
    ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) 

#define IAtlDemo_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)	\
    ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) 


#define IAtlDemo_ComStr(This,p1,p2,reStr)	\
    ( (This)->lpVtbl -> ComStr(This,p1,p2,reStr) ) 

#define IAtlDemo_Hello(This,p1)	\
    ( (This)->lpVtbl -> Hello(This,p1) ) 

#define IAtlDemo_ShowNum(This,num)	\
    ( (This)->lpVtbl -> ShowNum(This,num) ) 

#define IAtlDemo_removeCallback(This)	\
    ( (This)->lpVtbl -> removeCallback(This) ) 

#define IAtlDemo_addCallback(This,pCallback)	\
    ( (This)->lpVtbl -> addCallback(This,pCallback) ) 

#endif /* COBJMACROS */


#endif 	/* C style interface */




#endif 	/* __IAtlDemo_INTERFACE_DEFINED__ */



#ifndef __AtlTestLib_LIBRARY_DEFINED__
#define __AtlTestLib_LIBRARY_DEFINED__

/* library AtlTestLib */
/* [version][uuid] */ 


EXTERN_C const IID LIBID_AtlTestLib;

EXTERN_C const CLSID CLSID_AtlDemo;

#ifdef __cplusplus

class DECLSPEC_UUID("FE522524-3145-4E99-8FB8-2598B027FD6E")
AtlDemo;
#endif
#endif /* __AtlTestLib_LIBRARY_DEFINED__ */

/* Additional Prototypes for ALL interfaces */

unsigned long             __RPC_USER  BSTR_UserSize(     unsigned long *, unsigned long            , BSTR * ); 
unsigned char * __RPC_USER  BSTR_UserMarshal(  unsigned long *, unsigned char *, BSTR * ); 
unsigned char * __RPC_USER  BSTR_UserUnmarshal(unsigned long *, unsigned char *, BSTR * ); 
void                      __RPC_USER  BSTR_UserFree(     unsigned long *, BSTR * ); 

/* end of Additional Prototypes */

#ifdef __cplusplus
}
#endif

#endif


